﻿
namespace DatabaseGroup.SSIS.SourceAdapters
{
    /// <summary>
    /// Defines a list of error codes recognised by the 
    /// delimited file source component
    /// </summary>
    public enum ErrorCode
    {
        /// <summary>
        /// Indicates column data was too large for the column definition
        /// </summary>
        ColumnLevelErrorTruncationOperation = 70030,

        /// <summary>
        /// Indicates column data was not in the expected format or was otherwise unrecognised
        /// </summary>
        ColumnLevelErrorFormatOperation = 70031,

        /// <summary>
        /// Indicates the row data was more than expected or there were errors 
        /// with parsing the number of columns within the row
        /// </summary>
        RowLevelTruncationOperation = 70032,

        /// <summary>
        /// Indicates there were fewer columns contained within 
        /// the row data then configured on the output
        /// </summary>
        RowLevelUnderflowOperation = 70033,

        /// <summary>
        /// Indicates an unknown error in processing the data
        /// </summary>
        UnknownErrorParseOperation = 90000,

        /// <summary>
        /// Indicates the expected column parse operation failed due to either 
        /// row/column structure errors or unknown errors
        /// </summary>
        ColumnLevelErrorParseOperation = 90001
    }
}
